package com.yuanfengerp.Announcement.service;

import com.yuanfengerp.Announcement.model.Announcement;
import com.yuanfengerp.publicUtil.Result;

import java.util.ArrayList;
import java.util.Date;

public interface IAnnouncementService {
    ArrayList<Announcement> getAnnouncementList(int pageSize, int offset);
    ArrayList<Announcement> getAnnouncement(String caption , Date creation_time , Integer status , int notification_id);
    Result<Announcement> addAnnouncement(Announcement announcement);
    Result<Announcement> publishAnnouncement(Announcement announcement);
    Result<Announcement> selectAnnouncementById(int notification_id);
    Result<Announcement> updateAnnouncement(Announcement announcement);
}
